/**
 * admui-basic v2.1.0 (http://www.admui.com/)
 * Copyright 2015-2019 Admui Team
 * Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
 */
(function(window, document, $) {
  'use strict';

  window.App.extend({
    run: function() {
      $('#dataTableExample').DataTable(
        $.concatCpt('dataTable', {
          processing: true,
          serverSide: true,
          ajax: {
            url: 'http://demo.admui.com/employee/all/get',
            dataType: 'jsonp'
          },
          columns: [
            {data: 'name'},
            {data: 'title'},
            {data: 'base'},
            {data: 'age'},
            {data: 'hireDate'},
            {data: 'salary'}
          ]
        })
      );
    }
  });

  window.App.run();
})(window, document, jQuery);
